<!DOCTYPE html>
<html>
<head>
    <title>技术支持</title>
    #parse("sys/header.html")
    <script src="${rc.contextPath}/statics/libs/ajaxupload.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            #if($shiro.hasPermission("technicalsupport:save"))
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            #end
            #if($shiro.hasPermission("technicalsupport:update"))
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            #end
            #if($shiro.hasPermission("technicalsupport:delete"))
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            #end
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">技术支持类型</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control hidden" v-model="technicalSupport.typeId" placeholder="技术支持类型"/>
                    <select  class="form-control"  id="supportSelect"  placeholder="技术支持类型"    >
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">技术支持名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="technicalSupport.title" placeholder="技术支持名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">类型名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="technicalSupport.typeName" placeholder="类型名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">语言编码</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control hidden" v-model="technicalSupport.language" placeholder="语言编码"/>
                    <select  class="form-control" id="languageSelect"    placeholder="语言编码">
                        <option value="zh">zh</option>
                        <option value="en">en</option>
                        <option value="ja">ja</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">内容描述</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="technicalSupport.content" placeholder="内容描述"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">标题图</div>
                <div class="col-sm-10">
                    <input type="text"  id="downloadPath" readonly   class="form-control" v-model="technicalSupport.titleImage" placeholder="标题图"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <a class="btn btn-primary" id="upload"><i class="fa fa-plus"></i>&nbsp;上传文件</a>
                </div>

            </div>
            <div class="form-group hidden">
                <div class="col-sm-2 control-label">数据状态（0启用、1停用）</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="technicalSupport.status"
                           placeholder="数据状态（0启用、1停用）"/>
                </div>
            </div>
            <div class="form-group hidden">
                <div class="col-sm-2 control-label">添加时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="technicalSupport.addTime" placeholder="添加时间"/>
                </div>
            </div>
            <div class="form-group hidden">
                <div class="col-sm-2 control-label">添加人</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="technicalSupport.addUser" placeholder="添加人"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${rc.contextPath}/js/generator/technicalsupport.js?_${date.systemTime}"></script>
</body>
</html>